package com.neu.service.impl;

import java.util.List;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.neu.entity.Department;
import com.neu.mapper.DepartmentMapper;
import com.neu.service.DepartmentService;


@Service
@Transactional
public class DepartmentServiceImpl implements DepartmentService{
	
	@Autowired
	private DepartmentMapper departmentMapper;

	@Override
	public List<Department> getDepartmentList(Integer pageNum, Integer pageSize, String keywords) {
		// TODO Auto-generated method stub
		return departmentMapper.getDepartmentList(pageNum, pageSize, keywords);
	}

	@Override
	public List<Department> getDepartmentList02(Integer pageNum, Integer pageSize, String keywords, String keywords02,
			String keywords03) {
		// TODO Auto-generated method stub
		return departmentMapper.getDepartmentList02(pageNum, pageSize, keywords, keywords02, keywords03);
	}

	@Override
	public Integer getDepartmentCount(String keywords) {
		// TODO Auto-generated method stub
		return departmentMapper.getDepartmentCount(keywords);
	}

	@Override
	public Integer getDepartmentCount02(String keywords, String keywords02, String keywords03) {
		// TODO Auto-generated method stub
		return departmentMapper.getDepartmentCount02(keywords, keywords02, keywords03);
	}

	@Override
	public Integer addDepartment(Department dpet) {
		// TODO Auto-generated method stub
		return departmentMapper.addDepartment(dpet);
	}

	@Override
	public Integer updateDepartment(Department dept) {
		// TODO Auto-generated method stub
		return departmentMapper.updateDepartment(dept);
	}

	@Override
	public Integer deleteDepartmentById(Integer id) {
		// TODO Auto-generated method stub
		return departmentMapper.deleteDepartmentById(id);
	}

	@Override
	public Integer deleteDepartmentByIds(Integer[] ids) {
		// TODO Auto-generated method stub
		return departmentMapper.deleteDepartmentByIds(ids);
	}
	
	

}
